package com.springboot.application.dao;

import com.springboot.application.entity.UserEntity;
import org.apache.ibatis.annotations.*;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/11/1
 * @Description
 */
@Mapper
public interface UserMapper {


    @Select("select * from user where id=#{id}")
    @Results({
            @Result(property = "id", column = "id" ),
            @Result(property = "name", column = "name"),
            @Result(property = "age", column = "age"),
            @Result(property = "remark", column = "remark"),
    })
    UserEntity getUserInfoById(@Param("id") Long id);


}
